package com.fly.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fly.common.utils.PageUtils;
import com.fly.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author jpf
 * @email 2641466174@qq.com
 * @date 2022-03-29 13:56:39
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenusById(List<Long> asList);

    /**
     *  找到catelogId的完整路径
     *  [父/子/孙]
     */
    Long[] findCatalogPath(Long catalogId);

    void updateCascade(CategoryEntity category);
}

